package cn.bisoft.java.bean.entity;

import java.io.Serializable;


/**
 * This is an object that contains data related to the AnteUserInfo
 * table. Do not modify this class because it will be overwritten if
 * the configuration file related to this class is modified.
 * @hibernate.class table="AnteUserInfo"
 */

public abstract class BaseAnteUserInfo implements Serializable
{	
	private static final long serialVersionUID = 1L;

	public static String REF = "AnteUserInfo";

	public static String PROP_SEX = "sex";

	public static String PROP_BIRTHDAY = "birthday";

	public static String PROP_INCOME = "income";

	public static String PROP_MEMBERNAME = "membername";

	public static String PROP_POSTCODE = "postcode";

	public static String PROP_MBMBERFLAG = "mbmberflag";

	public static String PROP_REGISTERDATE = "registerdate";

	public static String PROP_PHONE = "phone";

	public static String PROP_PASSWORD = "password";

	public static String PROP_PAPERNUM = "papernum";

	public static String PROP_PAPERTYPE = "papertype";

	public static String PROP_EMAIL = "email";

	public static String PROP_MOBILE = "mobile";

	public static String PROP_ADDRESS = "address";

	public static String PROP_EDUCATIONALLEVEL = "educationallevel";

	public static String PROP_COUNTER_NUM = "counterNum";

	public static String PROP_ID = "id";

	public static String PROP_PROVINCE = "province";

	public static String PROP_ACTUALNAME = "actualname";

	// constructors
	public BaseAnteUserInfo()
	{
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteUserInfo(java.lang.Long id)
	{
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteUserInfo(java.lang.Long id, java.lang.String actualname, java.lang.String educationallevel,
			java.lang.String email, java.lang.String income, java.lang.String mbmberflag, java.lang.String membername,
			java.lang.String papernum, java.lang.String papertype, java.lang.String password,
			java.lang.String province, java.util.Date registerdate, java.lang.String sex)
	{

		this.setId(id);
		this.setActualname(actualname);
		this.setEducationallevel(educationallevel);
		this.setEmail(email);
		this.setIncome(income);
		this.setMbmberflag(mbmberflag);
		this.setMembername(membername);
		this.setPapernum(papernum);
		this.setPapertype(papertype);
		this.setPassword(password);
		this.setProvince(province);
		this.setRegisterdate(registerdate);
		this.setSex(sex);
		initialize();
	}

	protected void initialize()
	{
	}

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long id;

	// fields
	private java.lang.String actualname;

	private java.lang.String address;

	private java.util.Date birthday;

	private java.lang.String counterNum;

	private java.lang.String educationallevel;

	private java.lang.String email;

	private java.lang.String income;

	private java.lang.String mbmberflag;

	private java.lang.String membername;

	private java.lang.String mobile;

	private java.lang.String papernum;

	private java.lang.String papertype;

	private java.lang.String password;

	private java.lang.String phone;

	private java.lang.String postcode;

	private java.lang.String province;

	private java.util.Date registerdate;

	private java.lang.String sex;

	/**
	 * Return the unique identifier of this class
	 * @hibernate.id generator-class="assigned" column="ID"
	 */
	public java.lang.Long getId()
	{
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId(java.lang.Long id)
	{
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}

	/**
	 * Return the value associated with the column: ACTUALNAME
	 */
	public java.lang.String getActualname()
	{
		return actualname;
	}

	/**
	 * Set the value related to the column: ACTUALNAME
	 * @param actualname the ACTUALNAME value
	 */
	public void setActualname(java.lang.String actualname)
	{
		this.actualname = actualname;
	}

	/**
	 * Return the value associated with the column: ADDRESS
	 */
	public java.lang.String getAddress()
	{
		return address;
	}

	/**
	 * Set the value related to the column: ADDRESS
	 * @param address the ADDRESS value
	 */
	public void setAddress(java.lang.String address)
	{
		this.address = address;
	}

	/**
	 * Return the value associated with the column: BIRTHDAY
	 */
	public java.util.Date getBirthday()
	{
		return birthday;
	}

	/**
	 * Set the value related to the column: BIRTHDAY
	 * @param birthday the BIRTHDAY value
	 */
	public void setBirthday(java.util.Date birthday)
	{
		this.birthday = birthday;
	}

	/**
	 * Return the value associated with the column: CounterNum
	 */
	public java.lang.String getCounterNum()
	{
		return counterNum;
	}

	/**
	 * Set the value related to the column: CounterNum
	 * @param counterNum the CounterNum value
	 */
	public void setCounterNum(java.lang.String counterNum)
	{
		this.counterNum = counterNum;
	}

	/**
	 * Return the value associated with the column: EDUCATIONALLEVEL
	 */
	public java.lang.String getEducationallevel()
	{
		return educationallevel;
	}

	/**
	 * Set the value related to the column: EDUCATIONALLEVEL
	 * @param educationallevel the EDUCATIONALLEVEL value
	 */
	public void setEducationallevel(java.lang.String educationallevel)
	{
		this.educationallevel = educationallevel;
	}

	/**
	 * Return the value associated with the column: EMAIL
	 */
	public java.lang.String getEmail()
	{
		return email;
	}

	/**
	 * Set the value related to the column: EMAIL
	 * @param email the EMAIL value
	 */
	public void setEmail(java.lang.String email)
	{
		this.email = email;
	}

	/**
	 * Return the value associated with the column: INCOME
	 */
	public java.lang.String getIncome()
	{
		return income;
	}

	/**
	 * Set the value related to the column: INCOME
	 * @param income the INCOME value
	 */
	public void setIncome(java.lang.String income)
	{
		this.income = income;
	}

	/**
	 * Return the value associated with the column: MBMBERFLAG
	 */
	public java.lang.String getMbmberflag()
	{
		return mbmberflag;
	}

	/**
	 * Set the value related to the column: MBMBERFLAG
	 * @param mbmberflag the MBMBERFLAG value
	 */
	public void setMbmberflag(java.lang.String mbmberflag)
	{
		this.mbmberflag = mbmberflag;
	}

	/**
	 * Return the value associated with the column: MEMBERNAME
	 */
	public java.lang.String getMembername()
	{
		return membername;
	}

	/**
	 * Set the value related to the column: MEMBERNAME
	 * @param membername the MEMBERNAME value
	 */
	public void setMembername(java.lang.String membername)
	{
		this.membername = membername;
	}

	/**
	 * Return the value associated with the column: MOBILE
	 */
	public java.lang.String getMobile()
	{
		return mobile;
	}

	/**
	 * Set the value related to the column: MOBILE
	 * @param mobile the MOBILE value
	 */
	public void setMobile(java.lang.String mobile)
	{
		this.mobile = mobile;
	}

	/**
	 * Return the value associated with the column: PAPERNUM
	 */
	public java.lang.String getPapernum()
	{
		return papernum;
	}

	/**
	 * Set the value related to the column: PAPERNUM
	 * @param papernum the PAPERNUM value
	 */
	public void setPapernum(java.lang.String papernum)
	{
		this.papernum = papernum;
	}

	/**
	 * Return the value associated with the column: PAPERTYPE
	 */
	public java.lang.String getPapertype()
	{
		return papertype;
	}

	/**
	 * Set the value related to the column: PAPERTYPE
	 * @param papertype the PAPERTYPE value
	 */
	public void setPapertype(java.lang.String papertype)
	{
		this.papertype = papertype;
	}

	/**
	 * Return the value associated with the column: PASSWORD
	 */
	public java.lang.String getPassword()
	{
		return password;
	}

	/**
	 * Set the value related to the column: PASSWORD
	 * @param password the PASSWORD value
	 */
	public void setPassword(java.lang.String password)
	{
		this.password = password;
	}

	/**
	 * Return the value associated with the column: PHONE
	 */
	public java.lang.String getPhone()
	{
		return phone;
	}

	/**
	 * Set the value related to the column: PHONE
	 * @param phone the PHONE value
	 */
	public void setPhone(java.lang.String phone)
	{
		this.phone = phone;
	}

	/**
	 * Return the value associated with the column: POSTCODE
	 */
	public java.lang.String getPostcode()
	{
		return postcode;
	}

	/**
	 * Set the value related to the column: POSTCODE
	 * @param postcode the POSTCODE value
	 */
	public void setPostcode(java.lang.String postcode)
	{
		this.postcode = postcode;
	}

	/**
	 * Return the value associated with the column: PROVINCE
	 */
	public java.lang.String getProvince()
	{
		return province;
	}

	/**
	 * Set the value related to the column: PROVINCE
	 * @param province the PROVINCE value
	 */
	public void setProvince(java.lang.String province)
	{
		this.province = province;
	}

	/**
	 * Return the value associated with the column: REGISTERDATE
	 */
	public java.util.Date getRegisterdate()
	{
		return registerdate;
	}

	/**
	 * Set the value related to the column: REGISTERDATE
	 * @param registerdate the REGISTERDATE value
	 */
	public void setRegisterdate(java.util.Date registerdate)
	{
		this.registerdate = registerdate;
	}

	/**
	 * Return the value associated with the column: SEX
	 */
	public java.lang.String getSex()
	{
		return sex;
	}

	/**
	 * Set the value related to the column: SEX
	 * @param sex the SEX value
	 */
	public void setSex(java.lang.String sex)
	{
		this.sex = sex;
	}

	public boolean equals(Object obj)
	{
		if (null == obj)
			return false;
		if (!(obj instanceof AnteUserInfo))
			return false;
		else
		{
			AnteUserInfo anteUserInfo = (AnteUserInfo) obj;
			if (null == this.getId() || null == anteUserInfo.getId())
				return false;
			else
				return (this.getId().equals(anteUserInfo.getId()));
		}
	}

	public int hashCode()
	{
		if (Integer.MIN_VALUE == this.hashCode)
		{
			if (null == this.getId())
				return super.hashCode();
			else
			{
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	public String toString()
	{
		return super.toString();
	}

}